
import service from '../service/_'

export default {
    DevUrl: 'https://386m75y718.zicp.fun/renren-admin',
    ProdUrl: 'https://386m75y718.zicp.fun/renren-admin',
    // DevUrl: 'http://localhost:8080/renren-admin',
    // ProdUrl: 'http://localhost:8080/renren-admin',
    check: function () {
        if (process.env.NODE_ENV == "development") {
            return this.DevUrl
        } else {
            return this.ProdUrl
        }
    },
    ApiUrl: {
        login: '/login',
        menu: '/sys/menu/nav', //路由管理
        roleList: '/sys/role/list',//查询角色列表接口
        userSave: '/sys/user',//角色保存
        userput: '/sys/user',//角色保存
        userPage: '/sys/user/page',//角色分页
        userDetail: '/sys/user/',//角色详情
        userDelet: '/sys/user/delete',//角色详情
    },
    CustomPlug: [
        { n: '$api', v: service },
    ]
}